package P9.T01;

import java.io.File;
public class T01 {
    public static void main(String[] args) {
        File f=new File("E:\\Software");
        display(f,"");
    }
    public static void display(File f,String space) {
        for(File sf:f.listFiles()){
            if(sf.isDirectory()){
                System.out.printf("%s%s\n",space,sf.getName());
                display(sf,space+"  ");
            }
            else{
                System.out.printf("%s%s\n",space,sf.getName());
            }
        }
    }
}
